#include "StdAfx.h"

 
#include "qedit.h"

using namespace micro::gui;


QEdit::QEdit(HWND h)
{
	Attach(h);
}

QEdit::~QEdit(void)
{
}

bool QEdit::Create(QWindow *parent, int id, UINT style)
{
	 bool bo = CreateBaseWindowEx(
		 0,//WS_EX_CLIENTEDGE ,  
		 GetWndClassName(),
		 _T(""),
			style
			| WS_CHILD
			| WS_VISIBLE
			//| WS_BORDER   
			//| WS_VSCROLL
			//| ES_MULTILINE
			,QRect( ),
			parent, id  );


	return bo;
}
 
bool QEdit::OnPreCreate(CREATESTRUCT& cs)
{ 

	QControl::OnPreCreate(cs);

	cs.style = WS_CHILD
			|WS_VISIBLE
			|WS_BORDER   
			|ES_MULTILINE 
			|ES_WANTRETURN
			|WS_VSCROLL;

	  

	  cs.dwExStyle = WS_EX_CLIENTEDGE;
	  
	 return true;
}